package com.mioto.ld.module.device.service;

import com.mioto.ld.module.device.model.DeviceFunctionLog;
import com.mioto.ld.module.device.model.DeviceFunctionLogPO;
import com.mioto.ld.module.device.model.DeviceFunctionLogPagerVO;

import java.util.List;

/**
 * IDeviceFunctionLogService
 *
 * @author mioto
 * @date 2024-05-15 16:13:51
 */
public interface IDeviceFunctionLogService{

    /**
     * 根据条件查询列表
     * @param deviceFunctionLog
     * @return
     */
    List<DeviceFunctionLog> findList(DeviceFunctionLog deviceFunctionLog);

    /**
     * 根据列名和对应的值查询对象
     * @param column
     * @param value
     * @return
     */
    DeviceFunctionLog findByColumn(String column, Object value);

    /**
     * 新增对象
     * @param deviceFunctionLog
     * @return
     */
    int insert(DeviceFunctionLog deviceFunctionLog);

    /**
     * 修改对象
     * @param deviceFunctionLog
     * @return
     */
    int update(DeviceFunctionLog deviceFunctionLog);

    /**
     * 修改对象,忽略空值
     * @param deviceFunctionLog
     * @return
     */
    int updateIgnoreNull(DeviceFunctionLog deviceFunctionLog);

    /**
     * 根据列名和对应的值删除对象
     * @param column
     * @param value
     * @return
     */
    int deleteByColumn(String column, Object value);

    /**
     * 根据主键列表批量删除
     * @param ids
     * @return
     */
    int batchDelete(Integer[] ids);

    List<DeviceFunctionLogPagerVO> findPager(Integer deviceId,String startTime,String endTime);

    DeviceFunctionLogPO findIdAndDeviceIdBySnAndIdentity(String deviceSn, String identity);
}